package demo3;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext("demo3");
        Student student=context.getBean(Student.class);
        System.out.println(student);
    }
}
